+Fri Oct 10 22:50:05 2003 Matthias Clasen <maclas@gmx.de>
+
+ Fixes for (#124212, Marco Pesenti Gritti):
+
+ * gtk/gtkuimanager.c (update_smart_separators): Don't spit
+ warnings for popups.
+ (_gtk_menu_is_empty): Return FALSE for non-menus.
+
Fri Oct 10 19:10:12 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtkcombo.h: Deprecate.
+Fri Oct 10 22:50:05 2003 Matthias Clasen <maclas@gmx.de>
+
+ Fixes for (#124212, Marco Pesenti Gritti):
+
+ * gtk/gtkuimanager.c (update_smart_separators): Don't spit
+ warnings for popups.
+ (_gtk_menu_is_empty): Return FALSE for non-menus.
+
Fri Oct 10 19:10:12 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtkcombo.h: Deprecate.
+Fri Oct 10 22:50:05 2003 Matthias Clasen <maclas@gmx.de>
+
+ Fixes for (#124212, Marco Pesenti Gritti):
+
+ * gtk/gtkuimanager.c (update_smart_separators): Don't spit
+ warnings for popups.
+ (_gtk_menu_is_empty): Return FALSE for non-menus.
+
Fri Oct 10 19:10:12 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtkcombo.h: Deprecate.
+Fri Oct 10 22:50:05 2003 Matthias Clasen <maclas@gmx.de>
+
+ Fixes for (#124212, Marco Pesenti Gritti):
+
+ * gtk/gtkuimanager.c (update_smart_separators): Don't spit
+ warnings for popups.
+ (_gtk_menu_is_empty): Return FALSE for non-menus.
+
Fri Oct 10 19:10:12 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtkcombo.h: Deprecate.
+Fri Oct 10 22:50:05 2003 Matthias Clasen <maclas@gmx.de>
+
+ Fixes for (#124212, Marco Pesenti Gritti):
+
+ * gtk/gtkuimanager.c (update_smart_separators): Don't spit
+ warnings for popups.
+ (_gtk_menu_is_empty): Return FALSE for non-menus.
+
Fri Oct 10 19:10:12 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtkcombo.h: Deprecate.
g_return_val_if_fail (menu == NULL || GTK_IS_MENU (menu), TRUE);
if (!menu)
- return TRUE;
+ return FALSE;
children = gtk_container_get_children (GTK_CONTAINER (menu));
GtkWidget *item;
item = gtk_menu_get_attach_widget (GTK_MENU (parent));
- _gtk_action_sync_menu_visible (NULL, item, empty);
- g_object_set (G_OBJECT (filler), "visible", empty, NULL);
+ if (GTK_IS_MENU_ITEM (item))
+ _gtk_action_sync_menu_visible (NULL, item, empty);
+ if (GTK_IS_WIDGET (filler))
+ g_object_set (G_OBJECT (filler), "visible", empty, NULL);
}
}
}